<template>
  <view>
    <u-navbar
      title="用户协议"
      placeholder
      titleStyle="color:black"
      leftIconColor="#000"
      auto-back
    >
    </u-navbar>

    <view style="padding: 30rpx;">
      <u-parse :content="content"></u-parse>
    </view>


  </view>
</template>

<script>
import {getUserAgreementAPI} from "../../services/login";

export default {
  data() {
    return {
      background: {
        backgroundImage: 'linear-gradient(90deg, #ffffff, #ffffff)'
      },
      content:''
    }
  },
  onLoad() {
    this.Getxieyi()
  },

  methods: {
    async Getxieyi(){
      const that = this
      const res = await getUserAgreementAPI()
      that.content = res.result.contents
    }
  }
}
</script>
<style>
page {
  background-color: #F6F6F6;
}
</style>
<style lang="scss" scoped>
page {
  background-color: #f7f7f7;
}
.rich-val {

  word-break: break-all;

  white-space: pre-line;

}
.top{
  margin-left: 20rpx;
  margin-right: 20rpx;
}
</style>
